<!--{if $action == 'index'}-->
	<!--{if $status != 2}-->
		<div class="tns">
			<table cellpadding="4" cellspacing="0" border="0">
				<tr>
					<th><p>$_G[forum][posts]</p>{lang posts}</th>
					<th><p>$_G[forum][membernum]</p>{lang member}</th>
					<td><p>$groupcache[ranking][data][today]</p>{lang group_member_rank}</td>
				</tr>
			</table>
		</div>
		<hr class="l" />
		{hook/group_index_side}
		<!--{if $status != 2 && $status != 3}-->
			<div class="bn">
				<h2>{lang group_member}</h2>
				<ul class="tb cl">
					<li class="a" id="new" onmouseover="this.className='a';$('top').className='';$('newuserlist').style.display='block';$('topuserlist').style.display='none';"><a href="###">{lang group_member_new}</a></li>
					<li id="top" onmouseover="this.className='a';$('new').className='';$('topuserlist').style.display='block';$('newuserlist').style.display='none';"><a href="###">{lang group_member_active}</a></li>
					<li><a href="forum.php?mod=group&action=memberlist&fid=$_G[fid]">{lang all}</a></li>
				</ul>
				<ul class="ml mls cl" id="newuserlist" style="display:block;">
					<!--{loop $newuserlist $user}-->
						<li>
							<a href="home.php?mod=space&amp;uid=$user[uid]" title="{if $user['level'] == 1}{lang group_moderator}{elseif $user['level'] == 2}{lang group_moderator_vice}{elseif $user['level'] == 3}{lang group_star_member}{/if}{if $user['online']} {lang login_normal_mode}{/if}" class="avt">
								<!--{if $user['level'] == 1}-->
									<em class="gm"></em>
								<!--{elseif $user['level'] == 2}-->
									<em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
								<!--{elseif $user['level'] == 3}-->
									<em class="gs"></em>
								<!--{/if}-->
								<!--{if $user['online']}-->
									<em class="gol"{if $user['level'] <= 3} style="margin-top: 15px;"{/if}></em>
								<!--{/if}-->
								{echo discuz_uc_avatar($user[uid], 'small')}
							</a>
							<p>
								<a href="home.php?mod=space&amp;uid=$user[uid]">$user[username]</a>
							</p>
						</li>
					<!--{/loop}-->
				</ul>
				<ul class="ml mls cl" id="topuserlist" style="display:none;">
					<!--{loop $activityuserlist $user}-->
						<li>
							<a href="home.php?mod=space&amp;uid=$user[uid]" title="{if $user['level'] == 1}{lang group_moderator}{elseif $user['level'] == 2}{lang group_moderator_vice}{elseif $user['level'] == 3}{lang group_star_member}{/if}{if $user['online']} {lang login_normal_mode}{/if}" class="avt">
								<!--{if $user['level'] == 1}-->
									<em class="gm"></em>
								<!--{elseif $user['level'] == 2}-->
									<em class="gm" style="filter: alpha(opacity=50); opacity: 0.5"></em>
								<!--{elseif $user['level'] == 3}-->
									<em class="gs"></em>
								<!--{/if}-->
								<!--{if $user['online']}-->
									<em class="gol"{if $user['level'] <= 3} style="margin-top: 15px;"{/if}></em>
								<!--{/if}-->
								{echo discuz_uc_avatar($user[uid], 'small')}
							</a>
							<p>
								<a href="home.php?mod=space&amp;uid=$user[uid]">$user[username]</a>
							</p>
						</li>
					<!--{/loop}-->
				</ul>
			</div>
			<hr class="da" />
			<!--{if $groupviewed_list}-->
				<div class="bn">
					<h2>{lang group_visited}</h2>
					<ul class="ml mls cl">
						<!--{loop $groupviewed_list $groupid $group}-->
						<li>
							<a href="forum.php?mod=group&fid=$groupid" title="$group[name]" class="avt"><img src="$group[icon]" alt="$group[name]" /></a>
							<p><a href="forum.php?mod=group&fid=$groupid" title="$group[name]">$group[name]</a></p>
							<span>$group[membernum]</span>
						</li>
						<!--{/loop}-->
					</ul>
				</div>
				<hr class="da" />
			<!--{/if}-->
		<!--{/if}-->
	<!--{/if}-->
<!--{elseif $action == 'list'}-->
	<!--{if $groupcache['replies']['data']}-->
		<div class="bn">
			<h2>{lang group_hot_topics_today}</h2>
			<ul class="xl">
				<!--{loop $groupcache['replies']['data'] $tid $thread}-->
					<li><a href="forum.php?mod=viewthread&tid=$tid">$thread[subject]</a></li>
				<!--{/loop}-->
			</ul>
		</div>
		<hr class="da" />
	<!--{/if}-->
	<!--{if $groupcache['digest']['data']}-->
		<div class="bn">
			<h2>{lang group_digest_recommend}</h2>
			<ul class="xl">
				<!--{loop $groupcache['digest']['data'] $tid $thread}-->
					<li><a href="forum.php?mod=viewthread&tid=$tid">$thread[subject]</a></li>
				<!--{/loop}-->
			</ul>
		</div>
		<hr class="da" />
	<!--{/if}-->
<!--{/if}-->
<!--{if CURMODULE == 'group'}-->{hook/group_side_top}<!--{else}-->{hook/forumdisplay_side_top}<!--{/if}-->
<!--{if $action != 'create'}-->
	<div class="bn">
		<h2>{lang group_find_topics}</h2>
		<div class="gsh">
			<form method="post" action="search.php?mod=group&srchfid=$_G[fid]&searchsubmit=1">
				<p class="pns">
				<input type="text" name="srchtxt" id="groupsearch" class="px vm" value="{lang input_search_key_words}" onclick="$('groupsearch').value=''" />
				&nbsp;<button type="submit" class="pn vm"><strong>{lang search}</strong></button>
				</p>
			</form>
		</div>
	</div>
	<hr class="da" />
	<div class="bn cl">
		<h2>{lang group_url}</h2>
		<dl>
			<dt><a href="forum.php?mod=group&fid={$_G[fid]}" id="group_link"></a></dt>
			<dd class="mtn mbn xg1">($_G[forum][foundername] {lang create_on} $_G[forum][dateline])</dd>
			<dd class="pns">
				<button class="pn" onclick="setCopy($('group_link').href, '{lang group_url_copy_finished}')"><span>{lang group_url_copy}</span></button>
				<!--{if $status == 'isgroupuser'}-->
					<a onclick="showDialog('{lang group_exit_confirm}', 'confirm', '', function(){location.href='forum.php?mod=group&amp;action=out&amp;fid=$_G[fid]'})" href="#">{lang group_exit}</a>
				<!--{/if}-->
			</dd>			
		</dl>
		<script type="text/javascript">$('group_link').innerHTML = $('group_link').href</script>
	</div>
<!--{/if}-->